<template>
  <div class="image-message no-select">
   
      <div class="shop_box">
        <div class="shop_box_img">
          <img :src="dataBase.skuInfo.skuImage" alt="">
        </div>
        <div class="shop_box_text">
        <div class="p1">{{ dataBase.skuInfo.skuTitle }}</div>
        <div class="p2">￥{{ dataBase.skuInfo.price }}元</div>
        </div>
      </div>
  </div>
</template>

<script>
import { imgZoom } from '/@/views/chat/utils/functions.js'
export default {
    name: 'ShopMessage',
    props: {
      dataBase: {
          type: Object,
          default: '',
        }
    },
    setup() {
        
        return {
            
        }
    }
}
</script>

<style lang="scss" scoped>
.image-message {
  .shop_box{
  width: 240px;
  height: 100px;
  // background: #F3F7FA;
  box-shadow: 0 0 5px 0px #e8e4e4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  // justify-content: space-between;
  padding: 10px;
  cursor: pointer;
  &:hover {
    box-shadow: 0 0 5px 0px #cac6c6;
  }
  .shop_box_img{
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }
  .shop_box_text{
    width: 127px;
    height: 100%;
    margin-left: 10px;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    .p1{
    font-size: 13px;
    font-family: PingFang;
    font-weight: bold;
    overflow: hidden;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    }
    .p2{
      font-size: 14px;
      font-family: DIN;
      font-weight: bold;
      color: #FF3131;
    }
  }
}
}

</style>